<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/info-reg.css" />
<script type="text/javascript" src="js/WdatePicker.js"></script>
<title>移动办公自动化系统</title>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
<script type="text/javascript">
	//$(function(){
	//	$("#rptype").find("option[value=${requestScope.rView.rpType }]").attr("selected",true);
	//});
</script>
</head>

<body>
<div class="title"><h2>&nbsp;奖惩信息</h2></div>
<div class="main">
<form name="form1" method="post" action="${pageContext.request.contextPath}/RewordManager.action?method=update">
	<input type="hidden" name="currPage" value="${requestScope.currPage }"/>
	<input type="hidden" name="userid" value="${requestScope.rView.userId }" />
	<table>
	<tr><td>
    <p class="long-input ue-clear">
    	<label>编号：</label></p></td>
        <td><p class="short-input ue-clear"><input type="text" name="rpid" value="${requestScope.rView.rpId }" readonly="readonly" />
    </p></td></tr>
    <tr><td>
    <p class="long-input ue-clear">
    	<label>员工姓名：</label></p></td>
        <td><p class="short-input ue-clear"><input type="text" name="username" value="${requestScope.rView.userName }" readonly="readonly" />
    </p></td></tr>
   <tr><td>
    <p class="long-input ue-clear">
    	<label>所属部门：</label></p></td>
        <td><p class="short-input ue-clear"><input type="text" name="deptname" value="${requestScope.rView.deptName }" readonly="readonly" />
    </p></td></tr>
   <tr><td>
    <p class="long-input ue-clear">
    	<label>奖励类型：</label></p></td>
        <td><p class="short-input ue-clear"><select name="rptype" id="rptype">
        	<c:if test="${requestScope.rView.rpType=='奖'}">
        	<option value="奖" selected="selected">奖</option>
        	<option value="罚">罚</option>
        	</c:if>
        	<c:if test="${requestScope.rView.rpType=='罚'}">
        	<option value="奖">奖</option>
        	<option value="罚" selected="selected">罚</option>
        	</c:if>
        </select>
    </p></td></tr>
    <tr><td>
    <p class="long-input ue-clear">
    	<label>奖惩原因：</label></p></td>
        <td><p class="short-input ue-clear"><textarea name="cause">${requestScope.rView.rpCause }</textarea>
    </p></td></tr>
    <tr><td>
	<p class="short-input ue-clear">
    	<label>奖惩时间：</label></p></td>
        <td><p class="short-input ue-clear"><input type="text" name="rtime" value="${requestScope.rView.rpTime }" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
        <span><em>*</em>请输入正确的时间格式</span>
    </p></td></tr>
	</table>
	    <div class="btn ue-clear">
	<a href="javascript:document.form1.submit();" class="confirm">确定修改</a>
    <a href="javascript:history.back();" class="clear">返回</a>
	</div>
</form>
</div>
</body>
</html>


